import request from './requser';

export const getNews = () => request({ url: 'api/4/news/latest', method: 'get' })

export const getDetail = (params: string) => request({ url: 'api/4/news/' + params, method: 'get' })

export const getBeforeDetail = (params: string) => request({ url: 'api/4/news/before/' + params, method: 'get' })

export const longCommentUrl = (params: string) => request({ url: `api/4/story/${params}/long-comments`, method: 'get' })

export const shortCommentUrl = (params: string) => request({ url: `api/4/story/${params}/short-comments`, method: 'get' })

export const additionalUrl = (params: string) => request({ url: `api/4/story-extra/${params}`, method: 'get' })
